<template>

    <div>
            <table class="table_detail" style="width: 100%;">
                    <tr> <td colspan="5" class="headColor"> <span>转让标的基本情况</span></td></tr>
                    <tr> 
                        <td class="headColor"> <span>标的企业名称</span></td>
                        <td colspan="4"><span>{{cData?cData.subjectCompanyName:""}}</span></td>
                    </tr>  
                    <tr>
                        <td rowspan="24" class="showC headColor"><span>标的企业基本情况</span></td>
                    </tr>
                    <tr v-for="(v,i) in firstInfo" :key="i" v-if="v.show == 1">
                        <td class="headColor"><span>{{ v.name }}</span></td>
                        <td class="normalC"><span>{{cData?cData[v.model]:""}}</span></td>
                        <td class="headColor"><span>{{ v.name2 }}</span></td>
                        <td class="normalC"><span>{{cData?cData[v.model2]== true?'是':cData[v.model2]== false?'否':cData[v.model2]:""}}</span></td>
                    </tr>
                    <tr v-else>
                        <td class="headColor"><span>{{ v.name }}</span></td>
                        <td colspan="3" class="normalC"><span>{{cData?cData[v.model] == ''?'':cData[v.model]== true?'是':cData[v.model]== false?'否':cData[v.model]:""}}</span></td>
                    </tr>
 
                    <tr>
                        <td colspan="2" class="showC headColor"><span>前十位股东名称（以评估基准日工商登记情况为准）</span></td>
                        <td colspan="2" class="showC"><span>持有比例</span></td>
                    </tr> 
                    <tr v-for="(v,i) in shareholderList">
                        <td colspan="2" class="normalC"><span>{{cData?cData[v.model]:""}}</span></td>
                        <td colspan="2" class="normalC"><span>{{cData?cData[v.model2]:""}}%</span></td>
                    </tr>                                                                                                                                                                         
            </table>

            <table class="table_detail" style="width: 100%;">
                <tr>
                    <td rowspan="13" class="showC headColor"><span>主要财务指标</span></td>
                </tr>                
                <tr> <td colspan="6" class="headColor"> <span>{{cData?cData.aduitYear:""}}年度审计报告数据（最近一个年度审计报告）</span></td></tr>  
                <tr>
                    <td colspan="2" class="showC headColor"><span>营业收入</span></td>
                    <td colspan="2" class="showC" width = "222"><span>营业利润</span></td>    
                    <td colspan="2" class="showC headColor"><span>净利润</span></td>                                    
                </tr> 
                <tr>
                    <td colspan="2" class="normalC"><span>{{cData?cData.operateIncome:""}}</span></td>
                    <td colspan="2" class="normalC" width = "222"><span>{{cData?cData.operateProfit:""}}</span></td>    
                    <td colspan="2" class="normalC"><span>{{cData?cData.netProfit:""}}</span></td>                                    
                </tr>  

                <tr>
                    <td colspan="2" class="showC headColor"><span>资产总计</span></td>
                    <td colspan="2" class="showC headColor" width = "222"><span>负债总计</span></td>    
                    <td colspan="2" class="showC headColor"><span>所有者权益</span></td>                                    
                </tr> 
                <tr>
                    <td colspan="2" class="normalC"><span>{{cData?cData.totalAssets:""}}</span></td>
                    <td colspan="2" class="normalC" width = "222"><span>{{cData?cData.totalLiability:""}}</span></td>    
                    <td colspan="2" class="normalC"><span>{{cData?cData.ownersEquity:""}}</span></td>                                    
                </tr>

                 <tr>
                    <td colspan="2" class="showC headColor"><span>审计机构</span></td>
                    <td colspan="4" class="normalC" width = "222"><span>中汇会计师事务所（特殊普通合伙）</span></td>                                      
                </tr>    
                <!--  2019年08月18日财务报表数据-->
                <tr> <td colspan="6" class="headColor"> <span>{{cData?cData.recentReportDate:""}}财务报表数据</span></td></tr>  
                <tr>
                    <td colspan="2" class="showC headColor"><span>资产总计</span></td>
                    <td colspan="2" class="showC headColor" width = "222"><span>负债总计</span></td>    
                    <td colspan="2" class="showC headColor"><span>所有者权益</span></td>                                    
                </tr> 
                <tr>
                    <td colspan="2" class="normalC"><span>{{cData?cData.recentTotalAssets:""}}</span></td>
                    <td colspan="2" class="normalC" width = "222"><span>{{cData?cData.recentTotalLiability:""}}</span></td>    
                    <td colspan="2" class="normalC"><span>{{cData?cData.recentOwnersEquity:""}}</span></td>                                    
                </tr>   
                <tr>
                    <td colspan="2" class="showC headColor"><span>营业收入</span></td>
                    <td colspan="2" class="showC headColor" width = "222"><span>营业利润</span></td>    
                    <td colspan="2" class="showC headColor"><span>净利润</span></td>                                    
                </tr> 
                <tr>
                    <td colspan="2" class="normalC"><span>{{cData?cData.recentOperateIncome:""}}</span></td>
                    <td colspan="2" class="normalC" width = "222"><span>{{cData?cData.recentOperateProfit:""}}</span></td>    
                    <td colspan="2" class="normalC"><span>{{cData?cData.recentOperateNetprofit:""}}</span></td>                                    
                </tr> 
                <tr>
                    <td colspan="2" class="showC headColor"><span>报表类型</span></td>
                    <td colspan="4" class="normalC" width = "222"><span>{{cData?cData.reportType:""}}</span></td>                                      
                </tr> 

                <template v-if="cData.isAssetValuation">

                    <tr>
                        <td rowspan="9" class="showC headColor"><span>资产评估情况</span></td>
                    </tr>                                 
                    <tr>
                        <td colspan="2" class="showC headColor"><span>评估机构</span></td>
                        <td colspan="2" class="normalC" style="width:240px"><span>{{cData?cData.evaluateAgency:""}}</span></td> 
                        <td colspan="1" class="showC headColor" style="width:160px"><span>评估基准日</span></td>  
                        <td colspan="1" class="normalC" style="width:160px"><span>{{cData?cData.evaluateBaseDate:""}}</span></td>                                       
                    </tr> 

                    <tr>
                        <td colspan="2" class="showC headColor"><span>评估方法</span></td>
                        <td colspan="2" class="normalC" style="width:240px"><span>{{cData.evaluationMethod}}</span></td> 
                        <td colspan="1" class="showC headColor" style="width:160px"><span>核准或备案日期</span></td>  
                        <td colspan="1" class="normalC" style="width:160px"><span>{{cData.approvalDate}}</span></td>                                       
                    </tr>

                    <tr>
                        <td colspan="2"  class="showC headColor"><span>核准或备案机构</span></td>
                        <td colspan="2" class="normalC" width = "222"><span>{{cData.approveAgency}}</span></td>    
                        <td colspan="2" class="normalC"><span>{{cData.evaluateType}}</span></td>                                    
                    </tr> 
                    <tr>
                        <td colspan="2" class="showC headColor"><span></span></td>
                        <td colspan="2" class="showC headColor" width = "222"><span>审计后账面值</span></td>    
                        <td colspan="2" class="showC headColor"><span>评估价值</span></td>                                    
                    </tr> 

                    <tr>
                        <td colspan="2" class="showC headColor"><span>资产总计</span></td>
                        <td colspan="2" class="normalC" width = "222"><span>{{cData.auditTotalAssets}}</span></td>    
                        <td colspan="2" class="normalC"><span>{{cData.evaluateTotalAssets}}</span></td>                                    
                    </tr> 
                    <tr>
                        <td colspan="2" class="showC headColor"><span>负债总计</span></td>
                        <td colspan="2" class="normalC" width = "222"><span>{{cData.auditTotalLiability}}</span></td>    
                        <td colspan="2" class="normalC"><span>{{cData.evaluateTotalLiability}}</span></td>                                    
                    </tr> 
                    <tr>
                        <td colspan="2" class="showC headColor"><span>净资产</span></td>
                        <td colspan="2" class="normalC" width = "222"><span>{{cData.auditNetAssets}}</span></td>    
                        <td colspan="2" class="normalC"><span>{{cData.evaluateNetAssets}}</span></td>                                    
                    </tr> 

                    <tr>
                        <td colspan="4" class="showC headColor"><span>转让标的对应评估值</span></td>
                        <td colspan="2" class="normalC" width = "222"><span>{{cData.transferEvaluate}}</span></td>                                    
                    </tr>
                </template>
                 <tr>
                    <td colspan="3" class="showC headColor"><span>基准日审计机构</span></td>
                    <td colspan="4" class="normalC" width = "222"><span>{{cData.benchmarkAuditInstitution}}</span></td>                                    
                </tr> 
                 <tr>
                    <td colspan="3" class="showC headColor"><span>律师事务所</span></td>
                    <td colspan="4" class="normalC" width = "222"><span>{{cData.lawOffice}}</span></td>                                    
                </tr>  

                  <tr>
                    <td rowspan="3" class="showC headColor"><span>内部决策情况</span></td>
                </tr> 
                <tr>
                    <td colspan="2" class="showC headColor"><span>内部决策文件类型</span></td>
                    <td colspan="4" class="normalC" width = "222"><span>{{cData.internalType}}</span></td> 
                </tr>
                 <tr>
                    <td colspan="2" class="showC headColor"><span>内部决策文件名称及文号</span></td>
                    <td colspan="4" class="normalC" width = "222"><span>{{cData.fileAndDocument}}</span></td> 
                </tr>  
                  <tr>
                    <td colspan="1" class="showC headColor"><span>其他披露事项</span></td>
                    <td colspan="6" class="normalC" width = "222"><span>{{cData.otherDisclosures}}</span></td> 
                </tr>                                                                                                                                                         
            </table>
    </div>
</template>

<script>
    export default {
        props:{
            // cText:'',
            cData:'',
            // cCol:'',
        },
        data() {
            return {
                shareholderList: [
                    {
                        model: "shareholder",
                        model2: "holdRatio"
                    },{
                        model: "shareholder2",
                        model2: "holdRatio2"
                    },{
                        model: "shareholder3",
                        model2: "holdRatio3"
                    },{
                        model: "shareholder4",
                        model2: "holdRatio4"
                    },{
                        model: "shareholder5",
                        model2: "holdRatio5"
                    },{
                        model: "shareholder6",
                        model2: "holdRatio6"
                    },{
                        model: "shareholder7",
                        model2: "holdRatio7"
                    },{
                        model: "shareholder8",
                        model2: "holdRatio8"
                    },{
                        model: "shareholder9",
                        model2: "holdRatio9"
                    },{
                        model: "shareholder10",
                        model2: "holdRatio10"
                    }

                ],                               
                firstInfo:[{
                    name:'住所',
                    show:3,
                    model:'residence'
                },{
                    name:'法定代表人（负责人）',
                    name2:'成立日期',
                    show:1,
                    model:'legalPerson',
                    model2:'establishDate'
                },{
                    name:'注册资本',
                    name2:'实收资本',
                    show:1,
                    model:'registeredCapital',
                    model2:'paidCapital'                    
                },{
                    name:'企业类型',
                    name2:'所属行业',
                    show:1,
                    model:'companyType',
                    model2:'industry'                      
                },{
                    name:'职工人数（人）',
                    name2:'统一社会信用代码',
                    show:1,
                    model:'employeNum',
                    model2:'unifiedSocialCreditCode'                     
                },{
                    name:'经营规模',
                    name2:'是否含有国有划拨土地',
                    show:1,
                    model:'businessScale',
                    model2:'isAllocateLand'                    
                },{
                    name:'经济性质',
                    show:3,
                    model:'economicNature',                     
                },{
                    name:'经营范围',
                    show:3,
                    model:'businessScope', 
                },{
                    name:'其他股东是否放弃优先购买权',
                    show:3,
                    model:'isPreemptiveRight', 
                },{
                    name:'企业管理层是否参与受让',
                    show:3,
                    model:'isParticipateTransfer', 
                },{
                    name:'是否涉及职工安置',
                    show:3,
                    model:'isStaffPlacement', 
                },{
                    name:'导致标的企业的实际控制权发生转移',
                    show:3,
                    model:'isTransferControl',                     
                }]        
            }
        },
    }
</script>

<style scoped>
    .normalC{ background-color: #ffffff !important;}
    .showC{ background-color: #f5f5f5 !important;}
    .table_detail td:nth-child(odd) {
        width: 240px;
        height: 40px;
        background-color: #f5f5f5;
        flex: none;
    }    
    
</style>